package com.un.ebs.quality.domain;

import com.un.ebs.quality.enums.QualityTypeEnum;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (QualityDefine)表实体类
 *
 * @author liubo
 * @since 2020-11-15 20:12:24
 */
@Data
@Component
@TableName("tb_quality_define")
@SuppressWarnings("serial")
public class QualityDefine extends Model<QualityDefine> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;


    @DbField(name = "code", length = 100, precision = 0)
    private String code;

    @DbField(name = "title", length = 100, precision = 0)
    private String title;

    @DbField(name = "remark", length = 200, precision = 0)
    private String remark;

    @DbField(name = "quality_type", length = -1, precision = 0)
    private QualityTypeEnum qualityType;

    @TableLogic
    @DbField(name = "is_delete", length = -1, precision = 0)
    private Boolean isDelete;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}